/**
 * Created by Administrator on 2018/2/24.
 */
var  style={
  up: "#589065",
  down: "#ae4e54",
  bg: "#1d1d29",
  grid: "#1f2943",
  cross: "#9194A3",
  border: "#4e5b85",
  text: "#61688A",
  areatop: "rgba(122, 152, 247, .1)",
  areadown: "rgba(122, 152, 247, .02)"
}
export  default {
  mas:[{
    day: 5,
    color: "#821f68"
  }, {
    day: 10,
    color: "#5c7798"
  }, {
    day: 30,
    color: "#397d51"
  }, {
    day: 60,
    color: "#60407f"
  }],
  buttons:[{
    label:'分时',
    resolution: "1",
    chartType: 3
  }, {
    label: "1min",
    resolution: "1"
  }, {
    label: "5min",
    resolution: "5"
  }, {
    label: "15min",
    resolution: "15"
  }, {
    label: "30min",
    resolution: "30"
  }, {
    label: "1hour",
    resolution: "60"
  },{
    label: "1day",
    resolution: "1D"
  }, {
    label: "1week",
    resolution: "1W"
  }, {
    label: "1mon",
    resolution: "1M"
  }],
  drawings_access:{
    type: 'black',
    tools: [{ name: "Regression Trend" }]
  },
  disabled_features:[
    //"left_toolbar",//左边工具栏
    //"header_settings",
    //"header_indicators",
    "header_saveload",
    "compare_symbol",
    "display_market_status",
    "go_to_date",
    "header_chart_type", //图表类型
    "header_compare",
    "header_interval_dialog_button",
    "header_resolutions",
    "header_screenshot",
    "header_symbol_search", //搜索
    "header_undo_redo", //左右箭头
    "legend_context_menu",
    "show_hide_button_in_legend",
    "show_interval_dialog_on_key_press",
    "snapshot_trading_drawings",
    "symbol_info",
    "timeframes_toolbar",//底部时间栏目
    "use_localstorage_for_settings", //用户本地存储
    "volume_force_overlay"
  ],
  enabled_features: [
    "dont_show_boolean_study_arguments",
    "hide_last_na_study_output",
    "move_logo_to_main_pane",
    "same_data_requery",
    "side_toolbar_in_fullscreen_mode"
  ],
  overrides:{
    volumePaneSize: "medium",
    "scalesProperties.lineColor": style.text,
    "scalesProperties.textColor": style.text,
    "paneProperties.background": style.bg,
    "paneProperties.vertGridProperties.color": style.grid,
    "paneProperties.horzGridProperties.color": style.grid,
    "paneProperties.crossHairProperties.color": style.cross,
    "paneProperties.legendProperties.showLegend": !!style.showLegend,
    "paneProperties.legendProperties.showStudyArguments": true,
    "paneProperties.legendProperties.showStudyTitles": true,
    "paneProperties.legendProperties.showStudyValues": true,
    "paneProperties.legendProperties.showSeriesTitle": true,
    "paneProperties.legendProperties.showSeriesOHLC": true,
    "mainSeriesProperties.candleStyle.upColor": style.up,
    "mainSeriesProperties.candleStyle.downColor": style.down,
    "mainSeriesProperties.candleStyle.drawWick": true,
    "mainSeriesProperties.candleStyle.drawBorder": true,
    "mainSeriesProperties.candleStyle.borderColor": style.border,
    "mainSeriesProperties.candleStyle.borderUpColor": style.up,
    "mainSeriesProperties.candleStyle.borderDownColor": style.down,
    "mainSeriesProperties.candleStyle.wickUpColor": style.up,
    "mainSeriesProperties.candleStyle.wickDownColor": style.down,
    "mainSeriesProperties.candleStyle.barColorsOnPrevClose": false,
    "mainSeriesProperties.hollowCandleStyle.upColor": style.up,
    "mainSeriesProperties.hollowCandleStyle.downColor": style.down,
    "mainSeriesProperties.hollowCandleStyle.drawWick": true,
    "mainSeriesProperties.hollowCandleStyle.drawBorder": true,
    "mainSeriesProperties.hollowCandleStyle.borderColor": style.border,
    "mainSeriesProperties.hollowCandleStyle.borderUpColor": style.up,
    "mainSeriesProperties.hollowCandleStyle.borderDownColor": style.down,
    "mainSeriesProperties.hollowCandleStyle.wickColor": style.line,
    "mainSeriesProperties.haStyle.upColor": style.up,
    "mainSeriesProperties.haStyle.downColor": style.down,
    "mainSeriesProperties.haStyle.drawWick": true,
    "mainSeriesProperties.haStyle.drawBorder": true,
    "mainSeriesProperties.haStyle.borderColor": style.border,
    "mainSeriesProperties.haStyle.borderUpColor": style.up,
    "mainSeriesProperties.haStyle.borderDownColor": style.down,
    "mainSeriesProperties.haStyle.wickColor": style.border,
    "mainSeriesProperties.haStyle.barColorsOnPrevClose": false,
    "mainSeriesProperties.barStyle.upColor": style.up,
    "mainSeriesProperties.barStyle.downColor": style.down,
    "mainSeriesProperties.barStyle.barColorsOnPrevClose": false,
    "mainSeriesProperties.barStyle.dontDrawOpen": false,
    "mainSeriesProperties.lineStyle.color": style.border,
    "mainSeriesProperties.lineStyle.linewidth": 1,
    "mainSeriesProperties.lineStyle.priceSource": "close",
    "mainSeriesProperties.areaStyle.color1": style.areatop,
    "mainSeriesProperties.areaStyle.color2": style.areadown,
    "mainSeriesProperties.areaStyle.linecolor": style.border,
    "mainSeriesProperties.areaStyle.linewidth": 1,
    "mainSeriesProperties.areaStyle.priceSource": "close"
  }
}
